/* 
 * File:   LCDCustom.h
 * Author: valmirse
 *
 * Created on 30 de Março de 2014, 21:51
 */

#ifndef LCDCUSTOM_H
#define	LCDCUSTOM_H

#ifdef	__cplusplus
extern "C" {
#endif




#ifdef	__cplusplus
}
#endif

#endif	/* LCDCUSTOM_H */

 /*  LCD Module I/O pins *******************************************/
	#define LCD_DATA0_TRIS		(TRISDbits.TRISD0)		// Multiplexed with LED6
	#define LCD_DATA0_IO		(LATDbits.LATD0)
	#define LCD_DATA1_TRIS		(TRISDbits.TRISD1)
	#define LCD_DATA1_IO		(LATDbits.LATD1)
	#define LCD_DATA2_TRIS		(TRISDbits.TRISD2)
	#define LCD_DATA2_IO		(LATDbits.LATD2)
	#define LCD_DATA3_TRIS		(TRISDbits.TRISD3)		// Multiplexed with LED3
	#define LCD_DATA3_IO		(LATDbits.LATD3)
	#define LCD_DATA4_TRIS		(TRISDbits.TRISD4)		// Multiplexed with LED2
	#define LCD_DATA4_IO		(LATDbits.LATD4)
	#define LCD_DATA5_TRIS		(TRISDbits.TRISD5)
	#define LCD_DATA5_IO		(LATDbits.LATD5)
	#define LCD_DATA6_TRIS		(TRISDbits.TRISD6)
	#define LCD_DATA6_IO		(LATDbits.LATD6)
	#define LCD_DATA7_TRIS		(TRISDbits.TRISD7)
	#define LCD_DATA7_IO		(LATDbits.LATD7)
	#define LCD_RD_WR_TRIS		(TRISBbits.TRISB3)
	#define LCD_RD_WR_IO		(LATBbits.LATB3)
	#define LCD_RS_TRIS			(TRISBbits.TRISB2)
	#define LCD_RS_IO			(LATBbits.LATB2)
	#define LCD_E_TRIS			(TRISAbits.TRISA3)
	#define LCD_E_IO			(LATAbits.LATA3)